package com.easylinkin.linkappapi.hcmy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import java.math.BigDecimal;
import java.util.Date;

/**
 * class info :畜禽养殖
 *
 * @author liuqihang
 * @date 2021/10/15 18:03
 */
@Data
@Accessors(chain = true)
@TableName(value = "hcmy_livestock_farmers")
public class LivestockFarmers {


    @TableId(type= IdType.AUTO)
    private Integer id;

    /**
     * 统计年度
     */
    @TableField(value = "statistic_year")
    private Integer statisticYear;

    /**
     * 示范区
     */
    @TableField(value = "space_id")
    private String spaceId;

    /**
     * 示范村
     */
    @TableField(value = "area_id")
    private String areaId;

    /**
     * 牲猪规模化养殖户数(户)
     */
    @TableField(value = "shengzhu_farmers_num")
    @DecimalMin(value = "0", message = "请输入大于0的数")
    @Digits(integer = 8, fraction=0, message = "请输入8位整数范围内")
    private BigDecimal shengzhuFarmersNum;

    /**
     * 家禽规模化养殖户数(户)
     */
    @TableField(value = "jiaqin_farmers_num")
    @DecimalMin(value = "0", message = "请输入大于0的数")
    @Digits(integer = 8, fraction=0, message = "请输入8位整数范围内")
    private BigDecimal jiaqinFarmersNum;

    /**
     * '创建人'
     */
    @TableField(value = "creator")
    private String creator;

    /**
     * '修改人'
     */
    @TableField(value = "modifier")
    private String modifier;

    /**
     * '创建时间'
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * '修改时间'
     */
    @TableField(value = "modify_time")
    private Date modifyTime;

    /**
     * '租户ID'
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 批量删除ID
     */
    @TableField(exist = false)
    private String batchId;

    @TableField(exist = false)
    private String spaceName;

    @TableField(exist = false)
    private String areaName;

}
